import request from "@/utils/request";
enum Api {
  courseList = "/homepage/courseList",
  examList = "/exam/exame/list",
  newsList = "/homepage/newsList",
  teacherList = "/homepage/teacherList",
}

// 获取首页课程
export function getCourseList() {
  return request({ url: Api.courseList, method: "get" });
}

// 获取首页题库
export function getPaperList() {
  return request({ url: Api.examList, method: "get" });
}

// 热点资讯
export function getNewsList() {
  return request({ url: Api.newsList, method: "get" });
}

// 师资力量
export function getTeacherList() {
  return request({ url: Api.teacherList, method: "get" });
}
